﻿namespace LogManager.Utils.Unity.Rules
{
    using System;
    using System.ComponentModel;

    public class ImplementsINotifyPropertyChanged : IInterceptRule
    {
        public bool Matches(Type typeToIntercept, Type typeOfInstance)
        {
            return typeOfInstance.GetInterface(typeof(INotifyPropertyChanged).Name) != null;
        }
    }
}
